#pragma once
#include<iostream>
#include "person.h"
#include"student.h"
#include"teacher.h"
#include"globalFile.h"
#include"computerRoom.h"
#include<string>
#include<fstream>
#include<vector>
#include<algorithm>
using namespace std;

class Admin :public Person {
public:
	//default struct
	Admin();
	//struct with parameter
	Admin(string Uname, string pwd);
	virtual void operMenu();
	//add Person
	void addPerson();	
	//view all Person
	void viewAllPerson();
	//view computer room info
	void viewComRomInfo();
	// clean reservation record
	void cleanResRecord();
	// initialize stu and teacher vector 
	void initialVector();
	// check repeat account
	bool checkRepeat(int id,int type);

	vector<Student> m_vStudent;
	vector<Teacher> m_vTeacher;
	vector<ComputerRoom> m_vComputerRoom;

};